﻿<UserControl
    x:Class="SampleBrowser.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns:sample="http://schemas.firstfloorsoftware.com/documenttoolkit/samplebrowser"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

    <Border Style="{StaticResource ContentBorderStyle}">
        <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">

            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <Border x:Name="BrandingBorder" Style="{StaticResource NavBrandingBorderStyle}">
                <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}" >
                    <!--<ContentControl Style="{StaticResource LogoIcon}" />-->
                    <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="document toolkit" />
                </StackPanel>
            </Border>
            
            <Button x:Name="FullScreen" Margin="6" Padding="4" HorizontalAlignment="Right" VerticalAlignment="Top" ToolTipService.ToolTip="Toggle full screen">
                <Button.Content>
                    <Image Source="/SampleBrowser;component/Assets/Icons/maximize.png" Width="16" Height="16" />
                </Button.Content>
                <Button.Command>
                    <sample:ToggleFullScreenCommand />
                </Button.Command>
            </Button>

            <Border x:Name="LinksBorder" Style="{StaticResource NavLinksBorderStyle}" Grid.Row="1">
                <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">
                    <HyperlinkButton Style="{StaticResource LinkStyle}" NavigateUri="/Samples" TargetName="ContentFrame" Content="samples" />
                    <HyperlinkButton Style="{StaticResource LinkStyle}" NavigateUri="/About" TargetName="ContentFrame" Content="about" />
                </StackPanel>
            </Border>

            <Border x:Name="ContentBorder" Style="{StaticResource NavContentBorderStyle}" Grid.Row="1">
                <sdk:Frame x:Name="ContentFrame" Style="{StaticResource NavContentFrameStyle}" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed" />
            </Border>

        </Grid>
    </Border>

</UserControl>